package org.xiaojl.common;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

import org.xiaojl.config.easyui.EasyUITree;
import org.xiaojl.modules.sys.entity.SysUser;

public class SessionUser implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private String loginName;
	private String RealName;
	private String ip;
	private SysUser sysUser;
	private Set<String> roleIds;
	private Set<String> urls;
	private List<EasyUITree> easyUIMenuTree;
	
	 /**
     * 本函数输出将作为默认的<shiro:principal/>输出.
     */
    @Override
    public String toString() {
        return loginName;
    }
    
	public String getRealName() {
		return RealName;
	}
	public void setRealName(String realName) {
		RealName = realName;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public SysUser getSysUser() {
		return sysUser;
	}
	public void setSysUser(SysUser sysUser) {
		this.sysUser = sysUser;
	}
	public Set<String> getRoleIds() {
		return roleIds;
	}
	public void setRoleIds(Set<String> roleIds) {
		this.roleIds = roleIds;
	}
	public Set<String> getUrls() {
		return urls;
	}
	public void setUrls(Set<String> urls) {
		this.urls = urls;
	}

	public List<EasyUITree> getEasyUIMenuTree() {
		return easyUIMenuTree;
	}

	public void setEasyUIMenuTree(List<EasyUITree> easyUIMenuTree) {
		this.easyUIMenuTree = easyUIMenuTree;
	}
}
